package com.wsx.springai.entity;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 新闻查询参数实体类
 */
@Getter
@Setter
public class NewsQueryParams {

    /**
     * 情感类型
     */

    private String sentimentType;


    /**
     * 页码
     */

    private Integer pageNum;


    /**
     * 每页数量
     */

    private Integer numPerPage;


    /**
     * 标题
     */

    private String title;


    /**
     * 开始日期（时间戳）
     */

    private Long startDate;


    /**
     * 结束日期（时间戳）
     */

    private Long endDate;


    /**
     * 重要性
     */

    private String importances;


    /**
     * 组织ID列表（逗号分隔的字符串）
     */

    private String orgIds;


    /**
     * 类型和来源列表
     */

    private List typeAndSourceList;


    /**
     * 创建时间（时间戳）
     */

    private Double ctime;


    /**
     * 是否合并
     */

    private Boolean isMerge;


    /**
     * 同花顺ID
     */

    private String thsId;

// 默认构造函数

    public NewsQueryParams() {

    }

// 全参数构造函数

    public NewsQueryParams(String sentimentType, Integer pageNum, Integer numPerPage, String title,

                           Long startDate, Long endDate, String importances, String orgIds,

                           List typeAndSourceList, Double ctime, Boolean isMerge, String thsId) {

        this.sentimentType = sentimentType;

        this.pageNum = pageNum;

        this.numPerPage = numPerPage;

        this.title = title;

        this.startDate = startDate;

        this.endDate = endDate;

        this.importances = importances;

        this.orgIds = orgIds;

        this.typeAndSourceList = typeAndSourceList;

        this.ctime = ctime;

        this.isMerge = isMerge;

        this.thsId = thsId;

    }

// Getter和Setter方法

    public String getSentimentType() {

        return sentimentType;

    }

    public void setSentimentType(String sentimentType) {

        this.sentimentType = sentimentType;

    }

    public Integer getPageNum() {

        return pageNum;

    }

    public void setPageNum(Integer pageNum) {

        this.pageNum = pageNum;

    }

    public Integer getNumPerPage() {

        return numPerPage;

    }

    public void setNumPerPage(Integer numPerPage) {

        this.numPerPage = numPerPage;

    }

    public String getTitle() {

        return title;

    }

    public void setTitle(String title) {

        this.title = title;

    }

    public Long getStartDate() {

        return startDate;

    }

    public void setStartDate(Long startDate) {

        this.startDate = startDate;

    }

    public Long getEndDate() {

        return endDate;

    }

    public void setEndDate(Long endDate) {

        this.endDate = endDate;

    }

    public String getImportances() {

        return importances;

    }

    public void setImportances(String importances) {

        this.importances = importances;

    }

    public String getOrgIds() {

        return orgIds;

    }

    public void setOrgIds(String orgIds) {

        this.orgIds = orgIds;

    }

    public List getTypeAndSourceList() {

        return typeAndSourceList;

    }

    public void setTypeAndSourceList(List typeAndSourceList) {

        this.typeAndSourceList = typeAndSourceList;

    }

    public Double getCtime() {

        return ctime;

    }

    public void setCtime(Double ctime) {

        this.ctime = ctime;

    }

    public Boolean getIsMerge() {

        return isMerge;

    }

    public void setIsMerge(Boolean isMerge) {

        this.isMerge = isMerge;

    }

    public String getThsId() {

        return thsId;

    }

    public void setThsId(String thsId) {

        this.thsId = thsId;

    }

    @Override

    public String toString() {

        return "NewsQueryParams{" +

                "sentimentType='" + sentimentType + '\'' +

                ", pageNum=" + pageNum +

                ", numPerPage=" + numPerPage +

                ", title='" + title + '\'' +

                ", startDate=" + startDate +

                ", endDate=" + endDate +

                ", importances='" + importances + '\'' +

                ", orgIds='" + orgIds + '\'' +

                ", typeAndSourceList=" + typeAndSourceList +

                ", ctime=" + ctime +

                ", isMerge=" + isMerge +

                ", thsId='" + thsId + '\'' +

                '}';

    }

}